home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3dm / midi / mdPrintEvent.z / mdPrintEvent
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. mmmmddddPPPPrrrriiiinnnnttttEEEEvvvveeeennnntttt((((3333ddddmmmm))))                                            mmmmddddPPPPrrrriiiinnnnttttEEEEvvvveeeennnntttt((((3333ddddmmmm))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mdPrintEvent - Generate a descriptive string for MIDI events
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////mmmmiiiiddddiiii....hhhh>>>>
  13.  
  14.      iiiinnnntttt mmmmddddPPPPrrrriiiinnnnttttEEEEvvvveeeennnntttt((((cccchhhhaaaarrrr ****bbbbuuuuffff,,,, MMMMDDDDeeeevvvveeeennnntttt ****eeeevvvvbbbbuuuuffff,,,, iiiinnnntttt ccccoooouuuunnnntttt))))
  15.  
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      mmmmddddPPPPrrrriiiinnnnttttEEEEvvvveeeennnntttt can be used to format events in a buffer for printing.  _b_u_f
  19.      is a user allocated character into which the formatted string will be
  20.      written.  _e_v_b_u_f points to the array MDevents whose descriptions are to be
  21.      generated, and _c_o_u_n_t indicates how many of the events should be
  22.      described.
  23.  
  24.      In order to avoid overflowing _b_u_f, the programmer should insure that the
  25.      buffer can accomodate 80 bytes of description per message.
  26.  
  27.      The message format is:
  28.  
  29.      timestamp : channel : status type (string) : byte 1 : byte 2
  30.  
  31.      If the message is a note on or note off, the note name (eg A3) is printed
  32.      in the field occupied by byte 1.  Otherwise, the numeric value is
  33.      printed.
  34.  
  35. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  36.      mdPrintEvent return -1 on error, 0 on success.
  37.  
  38.  
  39. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  40.      mmmmddddIIIInnnnttttrrrroooo((((3333ddddmmmm))))
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.